// 个人/团体中心
const myCenter = [
  {
    path: '/myCenter',
    redirect: '/myCenter/individual/info',
    name: 'MyCenter',
    component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/index'),
    children: [
      {
        path: 'individual', // 个人信息
        // redirect: 'individual/info',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/individual/index'),
        meta: { type: 'Personal' },
        children: [
          {
            path: 'info', // 个人主页
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/individual/info'),
            meta: { type: 'Personal' }
          }
        ]
      },
      {
        path: 'team', // 团体信息
        redirect: 'team/info',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/team/index'),
        meta: { type: 'Delegation' },
        children: [
          {
            path: 'info', // 团体主页
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/team/info'),
            meta: { type: 'Delegation' }
          },
          {
            path: 'member', // 人员管理
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/team/member'),
            meta: { type: 'Delegation' }
          }
          // {
          //   path: 'setting', // 账号设置
          //   component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/team/setting'),
          //   meta: { type: 'Delegation' }
          // }
        ]
      },
      {
        path: 'notice', // 消息中心
        redirect: 'notice/system',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/notice/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'system', // 系统通知
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/notice/system'),
            meta: { type: 'PersonalDelegation' }
          },
          {
            path: 'organ', // 机构通知
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/notice/organ'),
            meta: { type: 'PersonalDelegation' }
          },
          {
            path: 'interaction', // 互动通知
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/notice/interaction'),
            meta: { type: 'PersonalDelegation' }
          }
        ]
      },
      {
        path: 'leagueApplication', // 联赛申请
        redirect: 'leagueApplication/main',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/leagueApplication/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'main', // 联赛申请
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/leagueApplication/main'),
            meta: { type: 'PersonalDelegation' }
          },
          {
            path: 'existing', // 已有分站赛
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/leagueApplication/existing'),
            meta: { type: 'PersonalDelegation' }
          },
          {
            path: 'apply', // 申请的分站赛
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/leagueApplication/apply'),
            meta: { type: 'PersonalDelegation' }
          }
        ]
      },
      {
        path: 'signUp', // 报项中心
        name: 'SignUp', // 报项中心
        redirect: 'signUp/gameSignUp',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/signUp/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: '', // 赛事报项
            name: 'GameSignUp',
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/signUp/gameSignUp'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/signUp' }
          },
          {
            path: 'trainSignUp', // 培训报项
            name: 'TrainSignUp',
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/signUp/trainSignUp'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/signUp' }
          },
          {
            path: 'gameSignUp/detail', // 赛事报项详情
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/signUp/reportDetail'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/signUp' }
          },
          {
            path: 'trainSignUp/detail', // 培训报项详情
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/signUp/trainSignUpDetail'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/signUp' }
          },
          {
            path: 'trainSignUp/confirmDetail', // 培训提交数据详情
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/signUp/trainConfirmDetail'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/signUp' }
          }
        ]
      },
      {
        path: 'authentication', // 职业中心
        redirect: 'authentication/main',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/authentication/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'main', // 职业认证
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/authentication/main'),
            meta: { type: 'PersonalDelegation' }
          }
        ]
      },
      {
        path: 'trainning', // 培训中心
        redirect: 'trainning/main',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/trainning/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'main', // 培训管理
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/trainning/main'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/trainning/main' }
          },
          {
            path: 'detail', // 成绩详情
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/trainning/resultDetail'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/trainning/main' }
          },
          {
            path: 'certificate', // 我的证书
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/trainning/certificate'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/trainning/certificate' }
          }
        ]
      },
      {
        path: 'examiner', // 考试官
        redirect: 'examiner/main',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/examiner/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'main', // 考试官
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/examiner/main'),
            meta: { type: 'PersonalDelegation' }
          }
        ]
      },
      {
        path: 'approval', // 审核中心
        redirect: 'approval/main',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/approval/index'),
        meta: { type: 'Delegation' },
        children: [
          {
            path: 'main', // 人员审核
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/approval/main'),
            meta: { type: 'Delegation' }
          }
        ]
      },
      {
        path: 'order', // 订单中心
        redirect: 'order/main',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/order/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'main', // 订单中心
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/order/main'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/order/main' }
          },
          {
            path: 'detail', // 订单详情
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/order/detail'),
            meta: { type: 'PersonalDelegation', activePath: '/myCenter/order/main' }
          }
        ]
      },
      {
        path: 'mall', // 商城管理
        redirect: 'mall/address',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/mall/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'address', // 收货地址
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/mall/address'),
            meta: { type: 'PersonalDelegation' }
          },
          {
            path: 'shoppingCart', // 我的购物车
            name: 'ShoppingCart',
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/mall/shoppingCart'),
            meta: { type: 'PersonalDelegation' }
          },
          {
            path: 'settlement', // 订单确认
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/mall/settlement'),
            meta: { type: 'PersonalDelegation' }
          }
        ]
      },
      {
        path: 'setting',
        redirect: 'setting/main',
        component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/setting/index'),
        meta: { type: 'PersonalDelegation' },
        children: [
          {
            path: 'main', // 账号设置
            component: () => import(/* webpackChunkName: "common" */ '@/views/home/myCenter/setting/main'),
            meta: { type: 'PersonalDelegation' }
          }
        ]
      }
    ]
  },
  {
    path: '/wx/bind',
    name: 'wxBind',
    component: () => import(/* webpackChunkName: "common" */ '@/viewThirdparty/bind')
  },
  {
    path: '/message',
    name: 'Message',
    component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/index'),
    children: [
      // {
      //   path: '',
      //   name: 'MessageType',
      //   component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/type')
      // },
      // {
      //   path: 'list',
      //   name: 'MessageList',
      //   component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/list')
      // },
      {
        path: 'h5',
        name: 'MessageH5',
        component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5'),
        children: [
          {
            path: 'checkIn/:id',
            name: 'MessageH5CheckIn',
            component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/checkIn.vue')
          },
          {
            path: 'checkOut/:id',
            name: 'MessageH5CheckOut',
            component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/checkOut.vue')
          },
          {
            path: 'studentReport/:id',
            component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/studentReport.vue'),
            children: [
              {
                path: '',
                name: 'MessageH5StudentReport',
                component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/reportInfo.vue')
              },
              {
                path: 'personInfo',
                name: 'MessageH5StudentReportPersonInfo',
                component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/personInfo.vue')
              },
              {
                path: 'gameInfo',
                name: 'MessageH5StudentReportGameInfo',
                component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/gameInfo.vue')
              },
              {
                path: 'trainInfo',
                name: 'MessageH5StudentReportTrainInfo',
                component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/trainInfo.vue')
              },
              {
                path: 'declareInfo',
                name: 'MessageH5StudentReportDeclareInfo',
                component: () => import(/* webpackChunkName: "common" */ '@/viewMessage/h5/declareInfo.vue')
              }
            ]
          }
        ]
      }
    ]
  }
];

export default myCenter;
